package org.tbwork.utility.toolbox;
 

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.JSON;

/**
 * User: huawei.li
 * Date: 14-5-12
 * Time: 下午3:37
 */
public class IssueRedEnvelopeDTO implements Serializable {
    private static final long serialVersionUID = 1073274483635330276L;
    /**
     * 用户id
     */
    private int userId;
    /**
     * 操作员id
     */
    private int operatorId;
    /**
     * 经费部门id(支付中心分配)
     */
    private int departmentId;
    /**
     * 红包金额
     */
    private BigDecimal amount;
    /**
     * 唯一id，防重发
     */
    private String transId;
    /**
     * 红包过期时间
     */
    private Date expiredTime;
    /**
     * 发放备注
     */
    private String memo;
    /**
     * 操作员ip
     */
    private String operatorIp;
 
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(int operatorId) {
        this.operatorId = operatorId;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getOperatorIp() {
        return operatorIp;
    }

    public void setOperatorIp(String operatorIp) {
        this.operatorIp = operatorIp;
    }

    public String getTransId() {
        return transId;
    }

    public void setTransId(String transId) {
        this.transId = transId;
    }

 
    
    public static void main(String[] args) {
		
    	IssueRedEnvelopeDTO dto= new IssueRedEnvelopeDTO();
    	dto.setAmount(new BigDecimal(99));
    	dto.setDepartmentId(12);
    	dto.setExpiredTime(new Date());
    	dto.setMemo("tangbo test");
    	dto.setOperatorId(1);
    	dto.setTransId("99999");
    	dto.setUserId(123);
    	dto.setOperatorIp("127.0.0.1");
    	 
    	System.out.println(JSON.toJSONString(dto));
    	
	}
}
